package pe.com.bn.sach.domain;

/**
 * Bnchf44TransicionId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf44TransicionId implements java.io.Serializable {

	// Fields

	private Bnchf43Flujo bnchf43Flujo;
	private Long f44IdTransicion;

	// Constructors

	/** default constructor */
	public Bnchf44TransicionId() {
	}

	/** full constructor */
	public Bnchf44TransicionId(Bnchf43Flujo bnchf43Flujo, Long f44IdTransicion) {
		this.bnchf43Flujo = bnchf43Flujo;
		this.f44IdTransicion = f44IdTransicion;
	}

	// Property accessors

	public Bnchf43Flujo getBnchf43Flujo() {
		return this.bnchf43Flujo;
	}

	public void setBnchf43Flujo(Bnchf43Flujo bnchf43Flujo) {
		this.bnchf43Flujo = bnchf43Flujo;
	}

	public Long getF44IdTransicion() {
		return this.f44IdTransicion;
	}

	public void setF44IdTransicion(Long f44IdTransicion) {
		this.f44IdTransicion = f44IdTransicion;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf44TransicionId))
			return false;
		Bnchf44TransicionId castOther = (Bnchf44TransicionId) other;

		return ((this.getBnchf43Flujo() == castOther.getBnchf43Flujo()) || (this
				.getBnchf43Flujo() != null
				&& castOther.getBnchf43Flujo() != null && this
				.getBnchf43Flujo().equals(castOther.getBnchf43Flujo())))
				&& ((this.getF44IdTransicion() == castOther
						.getF44IdTransicion()) || (this.getF44IdTransicion() != null
						&& castOther.getF44IdTransicion() != null && this
						.getF44IdTransicion().equals(
								castOther.getF44IdTransicion())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf43Flujo() == null ? 0 : this.getBnchf43Flujo()
						.hashCode());
		result = 37
				* result
				+ (getF44IdTransicion() == null ? 0 : this.getF44IdTransicion()
						.hashCode());
		return result;
	}

}